package NodeList;

/**
 * @ Author     ：侯耀祖
 * @ Description：
 */
public class Main {
    public static void main(String[] args) {
        ListNode one = new ListNode(1);
        ListNode two = new ListNode(2);
        ListNode three = new ListNode(3);
        ListNode four = new ListNode(4);
        one.next = two;
        two.next = three;
        three.next = four;
        swapPairs s = new swapPairs();
        ListNode node = s.swapPairs(one);
        while (node != null){
            System.out.println(node.val);
            node = node.next;
        }
    }
}
